<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
	<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
	<meta HTTP-EQUIV="expires" CONTENT="0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>
		<c:if test="${method == 'update' }">修改资产单元</c:if>
	    <c:if test="${method == 'add' }">新增资产单元</c:if>
	    <c:if test="${method == 'detail' }">查看资产单元</c:if>
	</title>
</head>
<body class="sub-page">
	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="tzjy" />
	</jsp:include>
	
	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;投资交易</p>
		<p class="current">&gt;交易结构</p>
		<p class="current">&gt;
			<c:if test="${method == 'update' }">修改资产单元</c:if>
		    <c:if test="${method == 'add' }">新增资产单元</c:if>
		    <c:if test="${method == 'detail' }">查看资产单元</c:if>
	    </p>
	</div>
	<div class="container">
		<form name="asseUnitAddForm" id="asseUnitAddForm" method="post" action="<%=context%>business/tradeStructure/insertAsseUnit.do" class="form-horizontal">
			<div class="page-content" style="min-height: 600px;margin: 0 auto;width: 800px;">
				<div class="page-header">
					<h4 class="page-title">
						<c:if test="${method == 'update' }">修改资产单元</c:if>
					    <c:if test="${method == 'add' }">新增资产单元</c:if>
					    <c:if test="${method == 'detail' }">查看资产单元</c:if>
					</h4>
				</div>
				<div class="page-body">
					<input type="hidden" class="prjCode" value="${vo.prjCode }">
					<input type="hidden" class="prjName" value="${vo.prjName }">
					<input type="hidden" id="method" value="${method }">
					<input type="hidden" id="assetUnitId" name="assetUnitId" value="${vo.assetUnitId }">
					<div class="form-group">
			            <label class="col-sm-3 control-label">产品名称<span class="text-danger">*</span></label>
			            <div class="col-sm-8 form-inner">
							<select placeholder="产品名称" class="form-control use-select2" name="prjCode" id="prjCode"></select>
						</div>
			         </div>
					
					<div class="form-group">
						<label class="col-sm-3 control-label">资产单元类型<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="hidden" class="assetType" name="assetType" value="${vo.assetType}"/>
							<select placeholder="资产单元类型" class="form-control use-select2" id="assetType">
								<option value="01" ${vo.assetType == '01' ?  'selected' : ''}>场外</option>
								<option value="02" ${vo.assetType == '02' ?  'selected' : ''}>场内场外</option>
			            	</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">资产单元编号<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="text" placeholder="资产单元编号" class="form-control" name="assetNumber" id="assetNumber" title="${vo.assetNumber }" value="${vo.assetNumber }" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">资产单元名称<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="text" placeholder="资产单元名称" class="form-control" name="assetName" id="assetName" title="${vo.assetName }" value="${vo.assetName }" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">资产单元最低资金额度<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="text" placeholder="资产单元最低资金额度" class="form-control" name="assetMinQuota" id="assetMinQuota" title="${vo.assetMinQuota }" value="${vo.assetMinQuota }" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">资产单元风控类型<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="hidden" class="assetRiskmanageType" name="assetRiskmanageType" value="${vo.assetRiskmanageType }"/>
							<select placeholder="资产单元风控类型" class="form-control use-select2" id="assetRiskmanageType">
			            		<option value="01" ${vo.assetRiskmanageType == '01' ?  'selected' : ''}>资产配置</option>
								<option value="02" ${vo.assetRiskmanageType == '02' ?  'selected' : ''}>投资交易</option>
								<option value="03" ${vo.assetRiskmanageType == '03' ?  'selected' : ''}>其他</option>
			            	</select>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-3 control-label">银行账号<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="text" placeholder="银行账号" class="form-control" name="bankAccount" id="bankAccount" title="${vo.bankAccount }" value="${vo.bankAccount }" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">管理人<span class="text-danger">*</span></label>
						<div class="col-sm-8 form-inner">
							<input type="text" placeholder="管理人" class="form-control" name="managementPeople" id="managementPeople" title="${vo.managementPeople }" value="${vo.managementPeople }" />
						</div>
					</div>
				</div>
				
				<c:if test="${method == 'detail' }">
					<div class="page-footer">
				         <button type="button" class="btn btn-primary btn-save" onclick="window.close();" id="closeBtn" name="closeBtn">关闭</button>
				    </div>
				</c:if>
				<c:if test="${method != 'detail' }">
					<div class="page-footer">
				         <button type="button" class="btn btn-primary btn-save" data-loading-text="保存中..." id="submitBtn" name="submitBtn" onclick="doSubmit()">保存</button>
				         <button type="button" class="btn btn-link" onclick="window.close();" id="closeBtn" name="closeBtn">取消</button>
				    </div>
				</c:if>
			</div>
		</form>
	</div>
<script type="text/javascript" src="<%=context%>resources/modules/business/investTrade/asseUnitAdd.js?r=<%=Math.random()%>"></script>
<script type="text/javascript">
		var basePath = "<%=context%>";
		var primaryPath = '<%=context%>' +'business/tradeStructure/';
		setPath(primaryPath,basePath);
</script>
</body>
</html>